<?
$length_of_preg = set_value('length_of_preg',$student->dhc_pregnancy_length);
$form_of_del = set_value('form_of_del',$student->dhc_delivery_form);
$complications = set_value('complications',$student->dhc_compications);
$go_to_bed = set_value('go_to_bed',$student->dhc_sleep_time);
$get_up_bed = set_value('get_up_bed',$student->dhc_wakup_time);
$sleeping_dist = set_value('sleeping_dist',$student->dhc_sleeping_disturbance_what);
$own_room = set_value('own_room',$student->dhc_child_own_room);
$room_shares = set_value('room_shares',$student->dhc_room_shares_who);
$wet_bed = set_value('wet_bed',$student->dhc_child_wet_bed);
$observable_difficulties = set_value('observable_difficulties',$student->dhc_defect_specify);
$observable_difficulties_since_when = set_value('observable_difficulties_since_when',$student->dhc_defect_when);
$observable_difficulties_action_taken = set_value('observable_difficulties_action_taken',$student->dhc_defect_actions);
$speech_problems = set_value('speech_problems',$student->dhc_speech_problem_what);
$speech_problems_since_when = set_value('speech_problems_since_when',$student->dhc_speech_problem_when);
$speech_problems_actions_taken = set_value('speech_problems_actions_taken',$student->dhc_speech_problem_actions);
$hearing_last_checked = set_value('hearing_last_checked',$student->dhc_hearing_last_check);
$hearing_problems = set_value('hearing_problems',$student->dhc_hearing_problems_what);
$hearing_problems_since_when = set_value('hearing_problems_since_when',$student->dhc_hearing_problems_when);
$hearing_problems_actions_taken = set_value('hearing_problems_actions_taken',$student->dhc_hearing_problem_actions);
$vision_last_checked = set_value('vision_last_checked',$student->dhc_vision_checked);
$vision_specify = set_value('vision_specify',$student->dhc_sight_problems_what);
$hinder_childs_learning = set_value('hinder_childs_learning',$student->dhc_hinder_learning_process);

?>
<div>
<div class="alert-box secondary"><h6>Developmental History</h6></div>
	<form action="<?=site_url('guardian/student_profiles/'.$hid);?>" method="POST" id="update_student_data">
	<div>
		<div class="large-8 columns">
			<label class="radius secondary label">Length of Pregnancy</label>
			<?=form_error('length_of_preg');?>
			<input type="text" name="length_of_preg" value="<?=$length_of_preg;?>">
		</div>
		<div class="large-4 columns">
			<label class="radius secondary label">Form of Delivery</label>
			<?=form_error('form_of_del');?>
			<input type="text" name="form_of_del" value="<?=$form_of_del;?>">
		</div>
	</div>
	<div>
		<label class="radius secondary label">Complications Before? during? after? delivery?</label>
		<?=form_error('complications');?>
		<input type="text" name="complications" value="<?=$complications;?>">
	</div>
	<div>
		<div class="large-6 columns">
			<label class="radius secondary label">What time does the child go to bed?</label>
			<?=form_error('go_to_bed');?>
			<input type="text" name="go_to_bed" value="<?=$go_to_bed;?>">
		</div>
		<div class="large-6 columns">
			<label class="radius secondary label">Get up from bed?</label>
			<?=form_error('get_up_bed');?>
			<input type="text" name="get_up_bed" value="<?=$get_up_bed;?>">
		</div>
	</div>
	<div>
		<label class="radius secondary label">Does the child have any sleeping disturbance? if yes what?</label>
		<?=form_error('sleeping_dist');?>
		<input type="text" name="sleeping_dist" value="<?=$sleeping_dist;?>">
	</div>
	<div>
		<div class="large-6 columns">
			<label class="radius secondary label">Does the child have own room?</label>
			<?=form_error('own_room');?>
			<?=form_dropdown('own_room',array('yes'=>'Yes','no'=>'No'),$own_room);?>
		</div>
		<div class="large-6 columns">
			<label class="radius secondary label">If not, shares with whom?</label>
			<?=form_error('room_shares');?>
			<input type="text" name="room_shares" value="<?=$room_shares;?>">
		</div>
	</div>
	<div>
		<div class="large-4 columns">
			<label class="radius secondary label">Does the child bed wet?</label>
			<?=form_error('wet_bed');?>
			<input type="text"  name="wet_bed" value="<?=$wet_bed;?>">
		</div>
		<div class="clearfix"></div>
	</div>
		<div>
			<p class="lead-title">Are there any observable difficulties or defects in you're child's growth?</p>
			<div>
				<label class="radius secondary label">Specify:</label>
				<?=form_error('observable_difficulties');?>
				<input type="text"  name="observable_difficulties" value="<?=$observable_difficulties;?>">
			</div>
			<div>
				<label class="radius secondary label">Since When?</label>
				<?=form_error('observable_difficulties_since_when');?>
				<input type="text"  name="observable_difficulties_since_when" value="<?=$observable_difficulties_since_when;?>">
			</div>
			<div>
				<label class="radius secondary label">Action Taken:</label>
				<?=form_error('observable_difficulties_action_taken');?>
				<input type="text"  name="observable_difficulties_action_taken" value="<?=$observable_difficulties_action_taken;?>">
			</div>
		</div>
		<div>
			<p class="lead-title">Are there any speech problems?</p>
			<div>
				<label class="radius secondary label">Specify:</label>
				<?=form_error('speech_problems');?>
				<input type="text"  name="speech_problems" value="<?=$speech_problems;?>">
			</div>
			<div>
				<label class="radius secondary label">Since When?</label>
				<?=form_error('speech_problems_since_when');?>
				<input type="text"  name="speech_problems_since_when" value="<?=$speech_problems_since_when;?>">
			</div>
			<div>
				<label class="radius secondary label">Action Taken:</label>
				<?=form_error('speech_problems_actions_taken');?>
				<input type="text"  name="speech_problems_actions_taken" value="<?=$speech_problems_actions_taken;?>">
			</div>
		</div>
		
		<div>
			<p class="lead-title">Are there any hearing problems?</p>
			<div>
				<label class="radius secondary label">When was the hearing of Child last checked?</label>
				<?=form_error('hearing_last_checked');?>
				<input type="text"  name="hearing_last_checked" value="<?=$hearing_last_checked;?>">
			</div>
			<div>
				<label class="radius secondary label">Specify:</label>
				<?=form_error('hearing_problems');?>
				<input type="text"  name="hearing_problems" value="<?=$hearing_problems;?>">
			</div>
			<div>
				<label class="radius secondary label">Since When?</label>
				<?=form_error('hearing_problems_since_when');?>
				<input type="text"  name="hearing_problems_since_when" value="<?=$hearing_problems_since_when;?>">
			</div>
			<div>
				<label class="radius secondary label">Action Taken:</label>
				<?=form_error('hearing_problems_actions_taken');?>
				<input type="text"  name="hearing_problems_actions_taken" value="<?=$hearing_problems_actions_taken;?>">
			</div>
		</div>
		
		<div>
			<p class="lead-title">Are there any sight problems?</p>
			<div>
				<label class="radius secondary label">When was the vision of Child last checked?</label>
				<?=form_error('vision_last_checked');?>
				<input type="text"  name="vision_last_checked" value="<?=$vision_last_checked;?>">
			</div>
			<div>
				<label class="radius secondary label">Specify:</label>
				<?=form_error('vision_specify');?>
				<input type="text"  name="vision_specify" value="<?=$vision_specify;?>">
			</div>
		</div>
		
		<div>
			<label class="radius secondary label">Are there any information that we should be aware of that may hinder the child's <br> learning process or general development?</label>
			<?=form_error('hinder_childs_learning');?>
			<textarea name="hinder_childs_learning"><?=$hinder_childs_learning;?></textarea>
		</div>
		<?if($student->edit == 0 OR isset($imastudent)):?>
			<span><small style="color:#f00">Sorry but this profile is locked and cannot be edited, please contact the school registrar.</small></span></br>
		<?else:?>
		<hr>
		<div>
			<input type="hidden" name="profile_id" value="<?=$student->profile_id;?>">
			<input type="hidden" name="enrollment_id" value="<?=$student->enrollment_id;?>">
			<input type="hidden" name="update_developmental_history" value="true">
			<input type="submit" name="update_developmental_history" value="Update Developmental History of Child" class="btn btn-primary">
		</div>
		<?endif;?>
	</form>
</div>